package com.xgz.bean;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * 普通的 person bean
 * 对比每次获取 person里面的cat  和 hello 里面的 cat
 * @author xgz
 */
@Component
public class Person {

	@Autowired
	private Cat cat;

	private String name;

	public Cat getCat() {
		return cat;
	}

	public void setCat(Cat cat) {
		this.cat = cat;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
}
